solve the sytem of 3 linear equations using matrices